package com.cat.singleton.demo01;

/**
 * 静态内部类
 * @author cat
 * @version 2025/5/15 17:00
 * @since JDK17
 */

public class Singleton04 {
    private Singleton04(){
    }

    private static class SingletonInstance{
        private static final Singleton04 INSTANCE = new Singleton04();
    }

    public static Singleton04 getInstance(){
        return SingletonInstance.INSTANCE;
    }
}
